package dao;

import model.Goods;
import model.Order;

import java.util.List;
import java.util.Map;

/**
 * @aythor:侯仪澳
 * @data:2022/7/21
 */
public interface IGoodsDao {
    //查询所有商品
    public List<Goods> queryAllGoods(Goods goods);
    //根据状态值查询所有订单   1-上架  0-下架
    public List<Goods> queryGoodsByStatus(Map<String,Object> map);
    //添加商品
    public int addOneGoods(Goods goods);
    //修改上架下架状态值
    public int updateGoodsBatch(List<Goods> list);
    //一级分类
    public List<Goods> queryFirstSort(Goods goods);
    //二级分类
    public List<Goods> querySecondSort(Goods goods);
    //修改货物信息
    public int updateOneGoods(Goods goods);
    //扣减库存
    public int subCount(Map<String,Integer> map);
    //退款添加库存
    public int addGoodsCount(Goods goods);

}
